<include file="Public:header" />

<div class="container">
	<!-- Docs nav ================================================== -->
	<div class="page-header">
		<h4>查看 留言信息</h4>
	</div>
	<div class="row">
		<div class="span12">
			<include file="Public:alert" />
			<form action="__APP__/index.php/Contact/edit/" method="post" enctype="multipart/form-data">
				<input  type="hidden" name="role_id" value="{$Think.session.role_id}"/>
				<input  type="hidden" name="id" value="{$vo.id}"/>
				<table class="table" border="0" cellspacing="1" cellpadding="0">
					<thead>
						<tr>
							<td colspan="2"><input name="submit" class="btn btn-primary" type="submit" value="保存"/>&nbsp; <input class="btn btn-primary" name="submit" type="submit" value="保存 & 新增"/> &nbsp;<input class="btn" type="button" onclick="javascript:history.go(-1)" value="返回"/></td>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="2"><input class="btn btn-primary"  name="submit" type="submit" value="保存"/> &nbsp;<input class="btn btn-primary" type="submit" value="保存 & 新增"/>&nbsp; <input class="btn" type="button" onclick="javascript:history.go(-1)" value="返回"/></td>
						</tr>
					</tfoot>
					<tbody>
						
						<tr>
							<td class="tdleft">留言人</td>
							<td><input class="span3" type="text" name="name" id="name" size="20" placeholder="请输入标题" value="{$vo.name}" disabled></td>
						</tr>
						<tr>
							<td class="tdleft">性别</td>
							<td><input class="span3" type="text" name="name" id="name" size="20" placeholder="请输入标题" value="{$vo.sex}" disabled></td>
						</tr>
						<!-- tr>
							<td class="tdleft">公司</td>
							<td><input class="span3" type="text" name="company" id="company" placeholder="图片链结" size="40" value="{$vo.company}" disabled></td>
						</tr-->
						<tr>
							<td class="tdleft">联系电话</td>
							<td><input class="span3" type="text" name="tel" id="tel" size="40" placeholder="请输入标题" value="{$vo.tel}" disabled></td>
						</tr>
						
                        <tr>
							<td class="tdleft">留言标题</td>
							<td><input class="span3" type="text" name="title" id="title" size="40" placeholder="请输入标题" value="{$vo.title}" disabled></td>
						</tr>
						<tr>
							<td class="tdleft">留言内容</td>
							<td>
							 <textarea name="content" id="content" cols="30" rows="10" disabled>{$vo.content}</textarea>
							</td>
						</tr>
						<tr>
							<td class="tdleft">留言时间</td>
							<td><input class="span3" type="text" name="add_time" id="add_time" size="40" placeholder="请输入标题" value="{$vo.add_time}" disabled></td>
						</tr>

						<tr>
							<td class="tdleft">标记为已处理</td>
							<td>
                              <input type="radio" name="is_deal" value="1" <if condition="$vo.is_deal eq 1">checked</if>>  已处理        
                              <input type="radio" name="is_deal" value="0" <if condition="$vo.is_deal eq 0">checked</if>>  待处理 
                            </td>
						</tr>
						<tr>
							<td class="tdleft">回复内容</td>
							<td>
							 <textarea name="remark" id="remark" cols="30" rows="10">{$vo.remark}</textarea>
							</td>
						</tr>
					</tbody>
				</table>
			</form>

		</div>
	</div>
</div>
<script type="text/javascript">
	<if condition="C('ismobile') eq 1">
		width=$('.container').width() * 0.9;
		$("#content").css({
			width : width
		});
	</if>
	$("input[name='submit']").click(function(){			
		if($("#remark").val() == null || $("#remark").val() == ""){
			alert('详情不能为空');
			return false;
		}
	})
	$(".fa-h-square").parent().parent().addClass("active");
</script>
<include file="Public:footer" />